package com.yunxie.deepSeekAPI.controller;


import com.yunxie.deepSeekAPI.service.DeepSeekService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/deepseek")
public class DeepSeekController {

    @Autowired
    private DeepSeekService deepSeekService;

    @PostMapping("/chat")
    public String chat(@RequestBody String message) {
        return deepSeekService.callDeepSeek(message);
    }
}
